namespace muduoDotNet
{
    /// <summary>
    /// 网络库相关的异常类
    /// </summary>
    public class NetException : Exception
    {
        public NetException() { }
        
        public NetException(string message) : base(message) { }
        
        public NetException(string message, Exception innerException) : base(message, innerException) { }
    }
    
    /// <summary>
    /// 连接相关的异常
    /// </summary>
    public class ConnectionException : NetException
    {
        public ConnectionException() { }
        
        public ConnectionException(string message) : base(message) { }
        
        public ConnectionException(string message, Exception innerException) : base(message, innerException) { }
    }
    
    /// <summary>
    /// IO 操作相关的异常
    /// </summary>
    public class IoException : NetException
    {
        public IoException() { }
        
        public IoException(string message) : base(message) { }
        
        public IoException(string message, Exception innerException) : base(message, innerException) { }
    }
    
    /// <summary>
    /// 协议相关的异常
    /// </summary>
    public class ProtocolException : NetException
    {
        public ProtocolException() { }
        
        public ProtocolException(string message) : base(message) { }
        
        public ProtocolException(string message, Exception innerException) : base(message, innerException) { }
    }
}